<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui">

    <body>

       <ui:composition template="./../WEB-INF/template/user/userPageTemplateWhitoutSidebar.xhtml">

            <ui:define name="title">
                Unregistration
            </ui:define>

            <ui:define name="content">
                <h:form class="centeredFormHight">  
                    
                    <p:panel header="Remove Account">
                    <p:fieldset legend="Unregistration Policy" collapsed="true" toggleable="true" toggleSpeed="500">
                        
                        <h:outputText value="When you delete your account from Meteocal all your data 
                                      will be deleted from our central database, so if you decide to
                                      register again no data will be found. This is for your privacy
                                      and your security. Your data are saved in our central database just 
                                      the time in which you need it.
                                      We give you an advice. If you decide to delete your account, 
                                      export your calendar and after remove your account, so if you 
                                      decide to use Meteocal again you will be able to import your 
                                      calendar with all your events."></h:outputText>
                        
                        
                    </p:fieldset>
                    
                    <h:panelGrid id="visibilityType" columns="2" >        
                        
                        <p:commandButton value="Back"   update="@all" action="#{editProfile.abort}"/>
                        
                        <p:commandButton  value="Delete" action="#{editProfile.deleteAccount}"/>
                    
                    </h:panelGrid> 
                    </p:panel>    
                
                </h:form>   
            </ui:define>

        </ui:composition>

    </body>
</html>
